using IrisGenerator.Common.Tools;
namespace IrisGenerator.Common.Modules
{
    
    
    public partial class ModuleParameterInstance {
        public static ModuleParameterInstance Select_MODULE_PARAMETER_INSTANCE_By_MOD_PAR_ID(System.Nullable<System.Guid> MOD_PAR_ID, System.Nullable<System.Guid> MOD_INS_ID)
        {
            IrisGenerator.Dal.ModuleParameterInstance dbo = null;
            try
            {
                dbo = new IrisGenerator.Dal.ModuleParameterInstance();
                System.Data.DataSet ds = dbo.Select_MODULE_PARAMETER_INSTANCE_By_MOD_PAR_ID_MOD_INS_ID(MOD_PAR_ID, MOD_INS_ID);
                ModuleParameterInstanceCollection collection = new ModuleParameterInstanceCollection();
                ModuleParameterInstance obj=null;
                if (GlobalTools.IsSafeDataSet(ds) && ds.Tables[0].Rows.Count>0)
                {
                    
                        obj = new ModuleParameterInstance();
                        obj.Fill(ds.Tables[0].Rows[0]);
                        
                }
                return obj;
            }
            catch (System.Exception)
            {
                throw;
            }
            finally
            {
                if ((dbo != null))
                {
                    dbo.Dispose();
                }
            }
        }
    }
}
